package com.manager.model;

import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@SuppressWarnings("all")
@Entity
@Table(name="tb_docker_deploy_volume")
public class DockerDeployVolume extends AllId{

    private Integer volumeType;

    private String containerPath;

    private String hostPath;

    private DockerDeploy deploy;

    @ManyToOne
    @Cascade(CascadeType.PERSIST)
    public DockerDeploy getDeploy() {
        return deploy;
    }

    public void setDeploy(DockerDeploy deploy) {
        this.deploy = deploy;
    }

    public Integer getVolumeType() {
        return volumeType;
    }

    public void setVolumeType(Integer volumeType) {
        this.volumeType = volumeType;
    }

    public String getContainerPath() {
        return containerPath;
    }

    public void setContainerPath(String containerPath) {
        this.containerPath = containerPath;
    }

    public String getHostPath() {
        return hostPath;
    }

    public void setHostPath(String hostPath) {
        this.hostPath = hostPath;
    }
}
